package pers.cz.business;

import pers.cz.mapper.SystemNoticeMapper;
import pers.cz.model.SystemNotice;
import pers.cz.pub.AbstractBusiness;

/**
 * 系统公告
 * @program: PostGirl-panent
 * @description: SystemNoticeBusiness
 * @author: Cheng Zhi
 * @create: 2022-03-20 14:28
 **/
public class SystemNoticeBusiness extends AbstractBusiness {

    /**
     * 获取最新公告
     * @return
     */
    public String getNoticeMessage() {

        SystemNotice systemNotice = this.helper.getBean(SystemNoticeMapper.class).getNewestNotice();
        return  systemNotice.getContent();
    }
}
